import React from 'react';
import { Button, Form } from 'antd';
import { DatePicker } from '@ecoding/components.antd';


const Operation = () => {
    const [form] = Form.useForm(); // 该组件内form全局变量
    const onFinish = async (v) => {
    };

    const onClear = async () => {
        form.resetFields();
    };

    return (
        <Form form={form} layout="horizontal" labelCol={{ span: 6 }} onFinish={onFinish}>
            <div className="w400">
                <Form.Item name="updateTime" label="更新时间">
                    <DatePicker format="YYYY-MM-DD" />
                </Form.Item>
            </div>
            <div className="tar">
                <Button className="mr10" onClick={onClear}>
                    清除
                </Button>
                <Button type="primary" htmlType="submit">
                    搜索
                </Button>
            </div>
        </Form>
    );
};

export default Operation;
